﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace CodeSnippetsEditor
{
    public class ClassCodeSnippet
    {
        private ClassHeader header = null;
        private ClassSnippet snippet = null;
        private string version = "1.0.0";

        /// <summary>
        /// Initializes a new instance of the <see cref="ClassCodeSnippet"/> class.
        /// </summary>
        public ClassCodeSnippet()
        {
            header = new ClassHeader();
            snippet = new ClassSnippet();
            version = "1.0.0";
        }

        /// <summary>
        /// Gets or sets the header.
        /// </summary>
        /// <value>The header.</value>
        [XmlElement()]
        public ClassHeader Header
        {
            get
            {
                return header;
            }
            set
            {
                header = value;
            }
        }

        /// <summary>
        /// Gets or sets the snippet.
        /// </summary>
        /// <value>The snippet.</value>
        [XmlElement()]
        public ClassSnippet Snippet
        {
            get
            {
                return snippet;
            }
            set
            {
                snippet = value;
            }
        }

        /// <summary>
        /// Gets or sets the version.
        /// </summary>
        /// <value>The version.</value>
        [XmlAttribute()]
        public string Version
        {
            get 
            { 
                return version; 
            }
            set
            { 
                version = value; 
            }
        }
    }
}
